package urnav.example.com;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.TextView;



public class QZiel extends Activity{
	
	String TAG = "URNav";
	
	public void onCreate(Bundle savedInstanceState){
	
		super.onCreate(savedInstanceState);
		setContentView(R.layout.qanweisung);
//		Bundle extras = getIntent().getExtras();
//		String name = extras.getString("name");
		
		
    
    final TextView myText;
    myText = (TextView)findViewById(R.id.textView1);
    myText.setText("Sie haben das Ziel erreicht. Bitte beantworten Soe noch die folgenden Fragen. ");


    final Button closeButton;
     closeButton = (Button)findViewById(R.id.button1);
     closeButton.setText("OK");
     
     OnClickListener radio_listener = new OnClickListener() {
  	    public void onClick(View v) {
  	    	
  	        RadioButton rb = (RadioButton) v;
 
  	
  	    }
  	};
     
     closeButton.setOnClickListener(new OnClickListener() {
         @Override
         public void onClick(View v) {
//         	Log.i(TAG, "XFZ");
         	
         	Intent resultIntent = new Intent();
//         	String erfahrung= edittext.getText().toString();
//         	resultIntent.putExtra("Zielgefunden", zielGefunden);
         	
//         	Log.i(TAG, "putextra: " + resultIntent.getStringExtra("Zielgefunden"));


         	setResult(RESULT_OK, resultIntent);
         	
         	

         	
         	finish();
       
         } });
     

}
	
	
	protected void onDestroy(){


		super.onDestroy();
		
	}
	
	protected void onResume(){

		
	super.onResume();
	}
	protected void onPause(){

		super.onPause();
		
	}
}